Repository navigation
feat(plugins): Java Support 独立分发、迁移与按需安装 - #1483
Conversation
|
感觉吧,其实也可以拆成插件,但是好像工程量有点大,后面再下载也是可以的吧(但是下载大小可能有点大) |
Lithe Review结论: ❓ 审查未完成 任务: 343 审查状态:已由服务器取消 可以重新评论 |
|
#1498 你看看这个issue看看能不能全部从rust核心移出来呗,最近在清理重构代码,很多Java的还是用的之前的入口没有走统一的逻辑 |
ok |
@xiaoyumuxi 是1495这个issue吗 |
是的是的 |
没问题 |
Preserve bundled enablement migration through the unified live install flow. Cover signed disk imports and marketplace installs, use shared localization, and repair connection, color-profile, and native popup lifecycle regressions.
Lithe Review结论: Findings
Scope Check
Suggestions
Summary插件信任、安装状态迁移、发行资源只读边界和双架构发布流程整体与仓库约束一致。当前有一项 P2 用户流程建议;未发现需要阻塞合并的问题。 Verification
|
* feat(plugins): execute native build tasks in workspace providers (#1495) * feat(plugins): discover and execute native provider tests (#1495) * feat(plugins): prepare and persist provider application runs (#1495) * feat(plugins): prepare native provider debug sessions (#1495) * feat(plugins): share read-only provider model inputs (#1495) * fix(build): isolate producer revisions and own run saves * feat(plugins): Java Support 独立分发、迁移与按需安装 (#1483) * feat(plugins): 支持 Java 签名安装与双架构独立发布基础 * feat(plugins): 完成 Java Support 迁移与按需分发入口 * fix(plugins): suggest Java restoration after completed removal * docs(plugins): inventory Maven and Java migration for #1495 (#1513) * fix(run): 统一跨平台启动环境、容错扫描与构建事件过滤 (#1543) * fix(run): share launch environment and resilient workspace policies * fix(run): stop shared Java enumeration at its source limit * docs(plugins): plan macOS public APIs and SDK documentation (#1548) --------- Co-authored-by: Lichenkang <2188718831@qq.com> Co-authored-by: Xiaoyumuxi <23722032@bjtu.edu.cn>
* feat(debug): #1210 tcpLanguageServer 调试传输:调试适配器随插件语言服务器运行(Java 迁入插件的第一步) (#1520) * feat(debug): #1210 tcpLanguageServer 调试传输:调试适配器随插件语言服务器运行(Java 迁入插件的第一步) debugAdapters 新增 tcpLanguageServer 传输,用于调试服务寄居在同一插件语言服务器里的适配器(Java Debug Server 之于 JDT LS)。该传输没有 launch.process,endpoint 只有 {languageID, command}:languageID 必须是同一插件 languageServers[] 里声明过的,command 限 [A-Za-z0-9._:-]{1,128}。宿主不拉起进程,而是启动该插件的语言服务器,用 workspace/executeCommand 执行 command,把返回值解析成 1…65535 的端口后连接 127.0.0.1。 Rust Core:DebugLaunch.process 改为可选(其他传输仍必填),新增 DebugTransport::TcpLanguageServer 与 DebugEndpoint 校验;programs() 产出 languageServerDebugAdapter,命令变化需要重新批准;debug_adapter_launch_plan 对无进程适配器返回插件语言服务器的启动计划和 debugAdapter 描述符。 macOS:DebugAdapterProcess 换成 DebugAdapterLaunch(host 为 .process 或 .languageServer);MacJavaDebugAdapterTransport 改名 MacHostedPortDebugAdapterTransport,端口来源由宿主注入,不再知道 Java;LanguageToolingSessionManager 新增 startHostedDebugAdapter,校验语言服务器确由该插件拥有,内置 Java 语言服务被拒绝;端口解析抽成 debugAdapterPort(from:)。tcpPort、tcpAnnounced、attach 和 runSelectedRuntime 仍被拒绝,拒绝文案改为只支持 stdio 与语言服务器承载的适配器。 契约与文档:plugin-manifest.schema.json、契约 README、rust-core-api.md、声明草案和 #1210 Agent Note 同步,新增 debug-adapter-language-server 契约 fixture;功能矩阵补充证据与验证说明。i18n:3 条 Java 专属文案改为通用文案,新增 3 条,调整传输拒绝文案,并重新生成产物。 测试:Rust 新增 3 个 Core 测试;Swift 新增解析器、传输、端口解析(16 个用例)与语言服务器归属测试。 * fix(debug): activate hosted language servers and cancel stale adapter starts * fix(ci): respect runtime boundaries and stabilize native regression tests * Merge pull request #1534 from 1lck/codex/remove-bot-pr-workflow chore(ci): remove unused GitHub App Bot PR workflow * feat(debug): #1210 远程 attach 契约与普通 TCP 生命周期边界 (#1525) * feat(debug): #1210 tcpLanguageServer 调试传输:调试适配器随插件语言服务器运行(Java 迁入插件的第一步) debugAdapters 新增 tcpLanguageServer 传输,用于调试服务寄居在同一插件语言服务器里的适配器(Java Debug Server 之于 JDT LS)。该传输没有 launch.process,endpoint 只有 {languageID, command}:languageID 必须是同一插件 languageServers[] 里声明过的,command 限 [A-Za-z0-9._:-]{1,128}。宿主不拉起进程,而是启动该插件的语言服务器,用 workspace/executeCommand 执行 command,把返回值解析成 1…65535 的端口后连接 127.0.0.1。 Rust Core:DebugLaunch.process 改为可选(其他传输仍必填),新增 DebugTransport::TcpLanguageServer 与 DebugEndpoint 校验;programs() 产出 languageServerDebugAdapter,命令变化需要重新批准;debug_adapter_launch_plan 对无进程适配器返回插件语言服务器的启动计划和 debugAdapter 描述符。 macOS:DebugAdapterProcess 换成 DebugAdapterLaunch(host 为 .process 或 .languageServer);MacJavaDebugAdapterTransport 改名 MacHostedPortDebugAdapterTransport,端口来源由宿主注入,不再知道 Java;LanguageToolingSessionManager 新增 startHostedDebugAdapter,校验语言服务器确由该插件拥有,内置 Java 语言服务被拒绝;端口解析抽成 debugAdapterPort(from:)。tcpPort、tcpAnnounced、attach 和 runSelectedRuntime 仍被拒绝,拒绝文案改为只支持 stdio 与语言服务器承载的适配器。 契约与文档:plugin-manifest.schema.json、契约 README、rust-core-api.md、声明草案和 #1210 Agent Note 同步,新增 debug-adapter-language-server 契约 fixture;功能矩阵补充证据与验证说明。i18n:3 条 Java 专属文案改为通用文案,新增 3 条,调整传输拒绝文案,并重新生成产物。 测试:Rust 新增 3 个 Core 测试;Swift 新增解析器、传输、端口解析(16 个用例)与语言服务器归属测试。 * feat(debug): #1210 远程 attach 契约:attach 配置声明 connection 绑定,适配器在远端的设计 Note - attach 配置的 targetBindings 新增 connection:host+port 或 address,目的地是适配器参数里的点分路径(最多 4 段),可选 pathMappings(objects/first 两种形状) - 声明期拒绝目的地冲突(与其他目的地、processId/cwd 参数或默认 arguments 重名/包含),运行期 set_argument 只写空位 - debug.adapters.startArguments 支持 connection 目标,校验主机/端口/映射,返回 connection:{host,port,remote};回环只按字面量判断,其余一律 remote:true - 适配器没有路径映射绑定而目标带了映射时拒绝,而不是悄悄丢弃 - plan 描述符新增 remoteAttach:{pathMappings},宿主据此决定界面,不按适配器名字判断 - 不新增权限,debug.attach 已覆盖;契约 README、schema、rust-core-api、fixture(含 22 条新拒绝用例)、功能矩阵同步 - 新增 Agent Note:适配器运行在远端——经 SSH 的 stdio 调试(仅设计,待确认四项默认选择后再实现),并更新统一调试 Note * feat(debug): #1210 远程 attach 兼容性审计:路径映射补 dictionary / pairs 两种形状,缺口清单与路线图 按各调试器上游文档核对“附加到远端程序”的参数写法后,路径映射就四种写法: - objects:对象列表(debugpy pathMappings、delve substitutePath) - first:唯一一条映射写成两个字符串(js-debug localRoot/remoteRoot) - dictionary:以 local 或 remote 一侧为键的对象(CodeLLDB sourceMap、PHP pathMappings) - pairs:二元数组列表,order 为 remoteLocal 或 localRemote(lldb-dap sourceMap) 形状装不下用户给的映射就拒绝,不截断:first 只接受一条(此前只取第一条,与 “不悄悄丢映射”的原则矛盾,属于未发布 API 4 内的行为修正),dictionary 在键的 一侧不能出现同一个根两次,违反返回 debug.target.invalid(target.pathMappings)。 plan.debugAdapter.remoteAttach 增加 maxPathMappings,宿主据此决定最多显示几行。 契约与 fixture:schema 增加两个 oneOf 分支;remote-attach fixture 增加 keyed、 paired 两个适配器(共 6 个);拒绝用例新增 6 条(共 28 条)。 Note:#1210 统一 Note 新增“兼容性审计”,逐个适配器标注“已核对 / 待核验”,列出 G1–G11 缺口(空闲端口占位符、tcpConnect、监听 attach、URI 目标、命令模板等)的 现状、决定和触发条件,并更新后续路线;SSH Note 说明适配器原生映射与 Core 路径翻译 是叠加的两层,远端适配器必须由 Core 翻译。 * docs(debug): separate network paths from TCP lifecycle scope * feat(debug): #1210 内置汇编级调试:反汇编、指令步进、指令断点、寄存器与只读内存 (#1527) * feat(debug): #1210 内置汇编级调试:反汇编、指令步进、指令断点、寄存器与只读内存 内核按适配器能力开放汇编级调试,插件只负责启动 lldb-dap/gdb 等适配器;能力快照 supported = 适配器声明 ∧ 已注册扩展 ∧ 已授权。 - 无源码栈帧:栈帧不伪造文件和第 1 行,显示函数名与地址,暂停后自动打开反汇编 - 反汇编:debug.inspect disassemble 与反汇编视图,高亮当前指令,保持最小滚动,剩余不足时向后续读 - 指令步进:debug.execute 增加 granularity,仅适配器声明 supportsSteppingGranularity 时生效;反汇编打开时步过/步入按指令前进,面板头部与按钮提示同步变化,不支持时提示仍按源码行前进 - 指令断点:debug.setInstructionBreakpoints,点击地址栏设置或移除;只属于当前会话,不持久化、不重放 - 寄存器:作用域 presentationHint registers 显示为寄存器标签;宿主不内置 CPU 寄存器表 - 内存:debug.inspect readMemory,接受地址或保存着地址的表达式,从目标前 64 字节读起并分页;目标字节在十六进制和 ASCII 两侧高亮并滚入可见区;右侧显示设置可切换进制、每格字节数、每行字节数、字节序与 ASCII 列;读不到的字节显示为缺失;只读,不开放 writeMemory - 单步局部刷新:next/stepIn/stepOut/stepBack 保留现有检查数据并原地替换,线程、调用栈、变量、反汇编、内存与 JSON 视图不再整面板清空,变化的内存字节被标出;继续、暂停、结束才清空 - 变量 JSON 视图:修复顶部空白带,key/value 分色高亮 - i18n:新增词条走 shared/i18n 并生成;功能矩阵新增 debug-disassembly(Windows 待实现);设计笔记补充真实 lldb-dap 验证结论 * fix(debug): #1210 guard retained inspection across steps and cancellation Freeze the old variable tree before the next stop reloads scopes and keep inspection controls read-only until replacement. Retire disassembly and memory callbacks before synchronous cancellation, and reject stale disassembly retries after session changes. Clear retained inspection when transport fails or the session terminates. Label memory offsets relative to the requested reference, use shared text-input and font owners, and update the owning decision note and platform verification steps. Add four deterministic regressions reproduced against the original PR. Validation: 152 selected Swift tests and 72 Rust debug tests passed; i18n, shared contracts, platform boundaries, test stability, Agent Notes, matrix gates and runtime bundle immutability passed. Real GUI and Windows runtime validation remain pending. * feat(debug): #1210 实现普通 TCP 调试连接与有界生命周期 (#1538) * feat(debug): #1210 implement direct TCP adapter lifecycle Unify hosted and external DAP byte streams behind a replaceable connection provider; reserve the seam for future network routes without adding proxy or tunnel behavior. Add explicit endpoint validation, per-connection remote consent, a one-shot launch/attach entry, bounded startup/write buffering, generation-fenced callbacks, and bounded disconnect draining. Keep the debuggee target separate and external resources user-owned. Cover routing, cancellation, queue limits, cleanup and real loopback Core DAP initialize/attach/disconnect. Update shared fixtures, localization, architecture notes and the platform capability matrix. Windows host and real debugger acceptance remain out of scope. * fix(debug): #1210 修复 TCP 调试连接评审问题 - 被拒绝或不可达的端口立即以系统原因失败,不再停在 .waiting 等满超时 - 端点发现与建连各自独立计时:发现 120 秒(语言服务器冷启动),建连 10 秒 - 外部适配器会话初始化期限改为 10 秒建连加 10 秒握手,不再抢在建连之前结束 - 连接对话框在连接启动前保持打开,失败原因留在对话框内并保留已填内容 - connectExternalDebugAdapter 返回失败原因,不再静默丢弃请求 - 当前文件没有调试提供方时,"连接调试适配器…"菜单项不可用;主机名先去除首尾空白 - 删除宿主端口传输中无人使用的错误分支 - 补充发现/建连两段期限与真实回环拒绝连接的测试,同步 Agent Note 与功能矩阵 * refactor(debug): #1210 将 TCP 调试连接生命周期下沉到 Rust Core 连接状态转换、取消规则、代次令牌与过期结果拒绝、只结束一次、 建连/写入/排空期限、待发字节与消息预算、单个在途写入,原先都写在 macOS 的 MacTCPDebugAdapterTransport 里,Windows 接入要重写并重新 证明同一套规则。现在这些规则由 Core 的独立状态机持有,平台只做 I/O。 Core(rust/lithe-core/src/debug/transport_lifecycle.rs) - 与 DAP 协议状态机独立,按 transportId 登记。 - 新增命令 debug.transport.policy / handle / release:平台发送事件, Core 返回新代次、阶段、结果和有序效果(发现端点、设置或取消计时器、 连接、写入、投递数据、关闭、报告失败、通知终止)。 - Core 没有时钟,只决定期限长短和到期后的转换;待发数据只以字节数 越过 JSON 边界,真实字节、socket 与计时器句柄留在平台。 - 共享 fixture shared/fixtures/debug/transport-lifecycle-v1.json 覆盖 约 28 个场景,Rust 逐步回放;已登记到 v1-baseline。 macOS - 新增 RustDebugTransportCore.swift 类型化桥接。 - MacTCPDebugAdapterTransport 只拥有 NWConnection、端点发现任务、待发帧 字节和系统计时器,并执行 Core 返回的效果;core 参数贯穿托管端口、 插件和外部端点三条传输,会话初始化期限改读 Core 策略。 - 计时器触发后也释放句柄,避免排空计时器继续持有传输。 - Core 调用本身失败时本地静默拆除并向所有者报告一次。 已接受的行为差异:观察者在错误输出回调里调用 stop() 时,终止通知 现在仍会送达(旧实现把它当作生命周期被替换而吞掉);重启仍会使旧 通知作废。 文档:更新 Agent Note、功能矩阵与 rust-core-api 契约。 * feat(plugins): Java Support 独立分发、迁移与按需安装 (#1483) * feat(plugins): 支持 Java 签名安装与双架构独立发布基础 * feat(plugins): 完成 Java Support 迁移与按需分发入口 * fix(plugins): suggest Java restoration after completed removal * docs(plugins): inventory Maven and Java migration for #1495 (#1513) * fix(run): 统一跨平台启动环境、容错扫描与构建事件过滤 (#1543) * fix(run): share launch environment and resilient workspace policies * fix(run): stop shared Java enumeration at its source limit * docs(plugins): plan macOS public APIs and SDK documentation (#1548) * feat(plugins): #1495 原生 Provider 工作流与只读工程模型共享 (#1517) * feat(plugins): execute native build tasks in workspace providers (#1495) * feat(plugins): discover and execute native provider tests (#1495) * feat(plugins): prepare and persist provider application runs (#1495) * feat(plugins): prepare native provider debug sessions (#1495) * feat(plugins): share read-only provider model inputs (#1495) * fix(build): isolate producer revisions and own run saves * feat(plugins): Java Support 独立分发、迁移与按需安装 (#1483) * feat(plugins): 支持 Java 签名安装与双架构独立发布基础 * feat(plugins): 完成 Java Support 迁移与按需分发入口 * fix(plugins): suggest Java restoration after completed removal * docs(plugins): inventory Maven and Java migration for #1495 (#1513) * fix(run): 统一跨平台启动环境、容错扫描与构建事件过滤 (#1543) * fix(run): share launch environment and resilient workspace policies * fix(run): stop shared Java enumeration at its source limit * docs(plugins): plan macOS public APIs and SDK documentation (#1548) --------- Co-authored-by: Lichenkang <2188718831@qq.com> Co-authored-by: Xiaoyumuxi <23722032@bjtu.edu.cn> * fix(macos): 修复 Java 启动竞态、插件启动参数与无限重试 (#1526) * fix(macos): stabilize Java startup and plugin launch (#1523, #1524) * test(macos): bound language startup regression task waits * test(macos): allow disk image creation margin within integration budget * fix(macos): revoke deferred language activation when project session closes * test(macos): cover production language launch and navigation evidence * fix(ide-host): include ttlMs and cacheScope in MCP tools/list (#1545) (#1546) The helper advertises protocol revision 2026-07-28 through server/discover. For that revision ListToolsResult extends CacheableResult, where ttlMs and cacheScope are required, but building the result with ..Default::default() left both fields absent. Clients validating the negotiated wire shape rejected the whole server with INVALID_RESULT (ZCode 0.17.0, Qoder). The catalog describes live IDE state, so the result is immediately stale (ttlMs 0) and private to the connected client. Co-authored-by: jiaqizhang258 <321343564+jiaqizhang258@users.noreply.github.com> Co-authored-by: Lichenkang <2188718831@qq.com> * fix(mcp): 稳定 Windows 请求调度与授权生命周期 (#1549) * fix(mcp): stabilize Windows request delivery and protocol discovery * fix(mcp): recover independent notifications and enforce monotonic deadlines * fix(macos): 独立多 Diff 标签与连续滚动、工作树管理体验 (#1555) * fix(macos): support independent diff tabs and continuous Git browsing - isolate diff sessions, editor groups, focus, navigation and async reads - auto-load disassembly, Git/worktree history, VCS and MCP discovery lists - preserve scroll anchors and suppress background Git command noise - add worktree change management and shared localized actions - organize develop-lithe guidance in Chinese and update capability records - repair per-toolchain SwiftPM resource caches and add regression coverage - align affected macOS code with the pinned Swift 6.3.3 compiler Refs #1210 * fix(macos): 工作树更改页即时暂存、工具栏精简与 Git 控制台取消过滤 工作树「更改」页 - 勾选复选框后立即显示目标暂存状态(乐观显示),Git 完成后以实际结果为准; 仅等待本工作树状态扫描完成即恢复可点击,不再被全项目刷新阻塞。 - 工具栏只保留有实际动作的按钮:刷新、暂存全部、丢弃所选、显示 Diff; 移除灰显无作用的占位按钮,启用条件与选区/可暂存项一致。 - 提交历史页脚在加载中/失败/空闲都有固定行高内容,不再留空白带。 - 概览动作改为自然宽度的单一换行流,宽窗口详情自适应两列。 Git 控制台 - 在任何命令启动前就被取消(被后续请求取代)的请求不再显示为失败行; 已启动命令的取消仍保留并标注原因。同步更新共享契约、fixture 与 Windows journal。 其他 - Git Log 筛选弹窗/图/Diff 的布局与滚动细节调整,补充对应测试与中英词条。 - 同步 git-worktrees 平台能力记录。 * fix(macos): 修复多 Diff 标签刷新、历史重试、反汇编宽度与保存更改比较的评审问题 - 状态刷新只在本次真正读取过状态的仓库内才把"缺席"当作文件已干净;链接工作树的标签不再被 工作区刷新误关,由该工作树自己的状态读取(refreshWorktreeChanges)决定是否关闭 - 工作区/目录比较刷新内容未变时不再给会话的 @published 属性赋值(不重绘、不丢滚动位置); 新增 GitRepositoryDiffSession.updateDocument,同时比较补丁与行(与 HEAD 的比较没有补丁文本) - 目录比较刷新改为就地更新(showDirectoryDiff 增加 refreshingConfirmedRoots),不再清空行并闪现加载态 - 提交历史加载失败后的显式重试按已加载条数重新打开窗口,不缩回首页、不移动选择 - 反汇编列表只对最长候选行做文字测量,不再每次 body 求值都测量全部行 - 保存更改比较恢复"快照属于当前仓库"的校验,并在打开标签前校验版本与文件,避免留下空标签 - 补充回归测试,并更新两份 Agent Note * fix(remote): #1507 远程工作区、构建与插件执行适配 (#1515) * fix(remote): adapt workspace I/O and plugin execution for #1507 * fix(remote): continue #1507 common backend lifecycle and plugin validation Integrate PR #1515 onto the preview baseline, preserving plugin live activation and shared i18n changes. Reserve pending process, terminal and watch starts before dispatch; retain cleanup ownership across cancellation, worker saturation, disconnect and session shutdown. Add deterministic lifecycle and declarative remote launch regressions; isolate the empty connection registry test, fix Swift fixture shadowing and synchronize terminal resize with shell readiness. Update contracts, Agent Notes and partial/pending capability evidence. Java/JDT integration remains out of scope. * fix(remote): own plugin snapshots and isolate upload I/O Add session-owned run directory allocation and cleanup with retryable errors, original-session macOS deployment cleanup, and per-upload I/O isolation. Cover lifecycle and upload ordering regressions, update contracts/resource boundaries and capability evidence, and record optional transfer/environment candidates without expanding Agent or Java scope. * fix(remote): preserve repository identity and consolidate remote crate Keep remote Git repository roots and external metadata bound to their original host, including parent repositories and symlink roots. Consolidate client, protocol and server into lithe-remote with isolated client/server features, preserving the standalone server binary. Update consumers, packaging, CI selection, resource validation, contracts and regression coverage. * fix(remote): 修复合并后的 Agent Notes 路径,补齐能力矩阵并收紧远程扫描失败判定 - 两条 proposed 笔记的适用范围仍指向已合并的 rust/lithe-remote-client, 改为 rust/lithe-remote/src/client/,修复 Verify Agent Notes。 - 能力矩阵:remote-development-workspace 增加 BuildSystemService 与共享扫描证据, 写明运行配置发现尚未接入远程(Core 对 runConfig.inspect 返回 NotSupported, 仅 runConfig.selectJava 可用);run-discovery 增加同一说明。状态不变。 - 远程共享运行扫描只在链路取消、超时或中断时整体失败;主机对单个目录报告的 错误仍记为扫描不完整,与本机一致。判断集中到 workspace_io::is_transport_failure, detectors/scan.rs 与 workspace_scan.rs 共用,修正此前两处不一致。 - 新增集成测试:读取主机目录树且占位目录保持为空、单目录错误记为不完整、 根目录之下链路中断时扫描失败。 * fix(macos): avoid reentrant workbench hit testing (#1542) (#1557) * chore(scripts): 按作用语义整理 scripts 目录层级 (#1563) * chore(scripts): 按作用语义整理 scripts 目录层级 把 scripts/ 根目录下 127 个平铺脚本移入分类子目录,根目录不再放任何脚本。 全部使用 git mv,历史可追溯。 新目录: - ci/{common,cancel-closed-pr-runs,update-repo-charts}:CI 脚本,按工作流名分目录 - macos/{build,package,prepare,test,verify,perf,probe} - windows/{build,prepare,package,test,verify} - release/{sparkle,macos,autobuild,windows,notes} - rust-core、architecture、i18n、agent-notes、platform-feature-matrix、 plugins、remote、ide-mcp、editor、git-graph、agent、resources 同步修改: - classify-ci-changes.sh 路径模式、plan-ci-lane-reuse.mjs 基础设施规则、 对应测试夹具(夹具复制脚本时按新目录深度建目录) - ci-macos.yml 的 scripts/**/*.sh 循环、verify-i18n.yml 等工作流路径与 paths 过滤 - sparkle 的三个 Ruby 脚本改为 require_relative "../autobuild/autobuild-identity" - tauri.conf.json 的 beforeDevCommand / beforeBuildCommand - README、docs、Agent 笔记、Skill 和 Fonts NOTICE 中的脚本路径 - develop-lithe Skill 新增“脚本放置与分类”一节,AGENTS.md 增加入口提醒: 脚本必须在 scripts/ 下按作用分类,不得放在 scripts/ 根目录 验证: - 127 个脚本在旧分类器/新分类器下的 lane 结果一致,未知路径仍然 fail closed - 127 个脚本的规划器基础设施规则一致 - 受影响的 node/bun/shell/ruby/python 测试与 i18n、特性矩阵、Agent 笔记、 共享契约、模块/服务/编辑器边界、运行时 bundle 只读校验均通过 * fix(scripts): 修复 scripts 分类整理的评审问题 - Windows 前端安装测试移到 scripts/windows/build/,与被测脚本同目录, 测试夹具里复制脚本的路径、ci-windows.yml 的运行命令、分类器 windows 分支 和 Agent Note 里的路径同步更新 - 分类器空分支删除 3 个已不存在的平铺脚本名,避免过期名字被误当成已登记 - 规划器的 Windows 规则改为按目录匹配(windows/、release/windows/), 并单独登记 ide-mcp/build-windows-ide-mcp.mjs,补齐测试期望, 与分类器的路由保持一致 - develop-lithe Skill 补充:平台专属脚本留在所属跨平台领域目录的例外、 手工验收脚本放 test/、tauri.conf.json / package.json / official-plugins.json inputPaths / worktree-resources.json 里硬编码脚本路径的检查清单 * fix(windows): 补全 JavaSelectionRequest.requirements,修复 Windows 安装包构建 (#1507) (#1565) #1515 给 lithe-core 的 JavaSelectionRequest 新增了必填字段 requirements, 但 Windows 的 select_project_java 仍按旧字段构造,导致 Release AutoBuild 的 Windows 安装包步骤报 E0063 编译失败。 - windows/tauri/src-tauri/src/run.rs:Windows 传 root,requirements 与 root 互斥,所以填 None - develop-lithe Skill:补充 lithe-core 公开 Rust 类型/签名也是兼容面, Windows 直接链接 Core,改动时要同步检查调用点并给出检查方法 * docs: refresh WeChat community QR code (#1569) --------- Co-authored-by: Xiaoyumuxi <23722032@bjtu.edu.cn> Co-authored-by: muchen <145200703+Mucheen@users.noreply.github.com> Co-authored-by: arkleselect <166632698+arkleselect@users.noreply.github.com> Co-authored-by: jiaqizhang258 <549728022@qq.com> Co-authored-by: jiaqizhang258 <321343564+jiaqizhang258@users.noreply.github.com>
Java Support 已经是声明式插件,但资源仍随应用下载,外部副本也不能沿用宿主签名。本 PR 在同一插件 ID 下补齐可信独立发布、老用户切换和按需安装,并让应用在完整双架构官方索引上架后省去内置 Java 资源。当前
releaseEnabled: false且真实索引为空,默认构建继续保留过渡包。功能与行为
packageTrust: 1契约、schema 和 fixture,旧宿主在下载前过滤新版。下载副本要求publisherPackage;可选bundledSignatureRequirement: sameTeamAsHost仅适用于官方目录固定、确实位于宿主 app 内的 bundled 来源。任意来源只要存在签名文档都必须验证,来源伪造不能借用内置例外。bundledUntilPublishedVersion: 1.1.0控制默认包的退出条件。构建要求官方索引的仓库、API、能力与双架构 URL、平台和哈希完整且唯一,才跳过 Java 组装及 JDT/JDK 准备;缺项保留过渡包,损坏输入中止构建。后续兼容下载版本可继续满足门槛。打包判断和嵌入使用同一索引,支持只读的LITHE_OFFICIAL_PLUGIN_INDEX/--marketplace-index构建输入;临时 fixture 不参与发布或工作树复用,运行时不改写发行目录。--bundled-only使用宿主签名;开发包只允许 debug 显式生成。本次 CI 与基线修复
preview(0beb43c93),解决翻译资源和包管理器冲突,并包含 WebView 摄像头/麦克风权限覆盖清单的修复,消除原 Swift CI 的失败。L10n接口,跟随应用语言;同步迁移决策笔记和功能矩阵验证步骤。本轮 Review 修复
.removed副本不再被当作已安装。Java 文件、Maven/Gradle 项目可再次提示主动恢复;已安装(含禁用)、暂存更新和仍待卸载重启的副本保持原管理流程,每窗口会话一次的提示规则保留。截图来自实际 SwiftUI/AppKit 视图与受控目录/动作,复验方式见
docs/assets/java-installation-guidance/README.md。它们不代替真实市场下载、完整发行包、Intel 真机和 Windows 验收。本轮修复验证
pr1483-review-macos.*,没有放宽断言、计时预算或检查脚本。--skip-build运行同一计时入口并通过。编译日志保留在本地工件中,不将编译超时说成测试断言失败。此前本次 CI 与基线修复的验证
此前阶段验证
.artifacts/test-stability/。--slimuniversal 应用与 DMG 均实际构建通过,ARM64/Intel 架构、资源清单、应用签名和磁盘镜像检查通过。完整 fixture 索引下,缺少 JDT/JDK 构建输入仍可产出无 Java 副本的应用;空真实索引下,过渡包完整保留。临时应用和 DMG 已清理。00ab21e22已通过 Rust Core 1207 项及集成测试、Swift 信任安装等 121 项和 Java 消费者 180 项、C ABI/桥接;本次迁移提交6ab867aeb未进一步修改 Rust 实现或契约,macOS 受影响模块另按上述 95 项回归验证。发布边界
没有创建插件线上 Release、真实市场索引或使用正式发布私钥。默认应用当前仍含 Java,必须先发行支持新信任能力的宿主,再验证正式签名双架构包和真实市场安装,最后合并真实索引触发精简。fixture 索引只能证明构建路径,不能替代真实上架、Intel 真机及完整 Java 产品工作流;矩阵保持运行验收 pending。Windows 独立分发尚未实现。
插件契约合并后,需在
lithe-plugin-docs运行node scripts/contract.mjs sync --revision <合并后的 preview commit>并提交完整副本。本 PR 未修改插件后端 wire 协议或 SDK。